import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.tree.*;
import javax.swing.border.*;


public class votesecresult extends JInternalFrame implements InterInterface
{
	public JLabel lab = new JLabel("Selection Vote Result",JLabel.CENTER);
	public votesecresult()
	{
		super("Selection Vote Result",false,true,false,false);
		t33.setText("");
		
	}
	public void votesecresult1()
	{
		this.setBounds(55,50,430,300);
		setVisible(true);
		
		Container c = getContentPane();
		c.setLayout(null);
		
		t33.setBounds(48,60,320,180);
		t33.setBorder(new LineBorder(Color.white,2));
		c.add(t33);
		lab.setBounds(0,10,410,30);
		lab.setFont(new Font("Verdana",Font.PLAIN,16));
		c.add(lab);
		
		t33.setFont(new Font("Verdana",Font.PLAIN,14));
		t33.setText("Total Voter :     " +(Integer.parseInt(vone.getText()) + Integer.parseInt(vtwo.getText())+ Integer.parseInt(vthree.getText()) + Integer.parseInt(vfour.getText()))+"\n\n");
		t33.append(txf42.getText() +" Takes :     "+vone.getText()+" vote\n");
		t33.append(txf43.getText() +" Takes :     "+vtwo.getText()+" vote\n");
		t33.append(txf44.getText() +" Takes :     "+vthree.getText()+" vote\n");
		t33.append(txf45.getText() +" Takes :     "+vfour.getText()+" vote\n");
		
		try
		{
			UIManager.setLookAndFeel(looks[1].getClassName());
			SwingUtilities.updateComponentTreeUI(this);
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}
	
}
